package com.xjh.mange.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * @author 徐佳辉
 * @date 2020/12/20 15:37
 */
@Data
public class Thing {
    @TableId(value = "thing_id", type = IdType.AUTO)
    private Integer thingId;

    private Integer userId;

    private String thing;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    private Integer state;
}
